package com.client.model.pojo.bank;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 
 * @TableName deposit
 */
@TableName(value ="deposit")
@Data
public class Deposit implements Serializable {
    /**
     * 存款记录表
     */
    @TableId(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 所属卡号
     */
    @TableField(value = "bank_card")
    private String bankCard;

    /**
     * 金钱余额
     */
    @TableField(value = "balance")
    private BigDecimal balance;

    /**
     * 类型外键
     */
    @TableField(value = "did")
    private Long did;

    /**
     * 冗余字段
     */
    @TableField(value = "remark")
    private Integer remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}